<table class="fix">
	<thead>
		<tr>
			<?php
			foreach($sdim as $key=>$value){
			?>
			<th><a href="<?=$basic?>&order=<?=$key?>&rule=<?=($rule=='desc'&&$order==$key?'asc':'desc')?>"><?=$value['name']?></a><?php if($order==$key){?><span class="<?=$rule?>"></span><?php }?></th>
			<?php
			}
			foreach($smet as $key=>$value){
			?>
			<th><a href="<?=$basic?>&order=<?=$key?>&rule=<?=($rule=='desc'&&$order==$key?'asc':'desc')?>"><?=$value['name']?></a><?php if($order==$key){?><span class="<?=$rule?>"></span><?php }?></th>
			<?php
			}
			?>
		</tr>
	</thead>
	<tbody>
			<?php
			foreach($table as $value){
				echo '<tr>';
				foreach($value as $v){
					echo '<td>'.$v.'</td>';
				}
				echo '</tr>';
			}
			?>
	</tbody>
</table>
<div class="pagination"><?=$pagination?>&nbsp;&nbsp;<font>共<?=$total?>条记录</font></div>